<style>
    .search{
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-info">
        <div class="panel-heading"><b>试卷：</b>{$test_row.title|htmlentities}</div>
        <div class="panel-body">
            <div class="search">
                一键指定：
                <div>
                    <select id="user_g" name="user_g[]" class="form-control selectpicker" multiple="multiple">
                        <option value="0">未定义组</option>
                        {volist name="user_group" id="v"}
                        <option value="{$v.id|htmlentities}">{$v.name}</option>
                        {/volist}
                    </select>
                </div>
                <div style="margin-left: 10px;">
                    <button type="button" class="btn btn-info" id="set_group"><i class="fa fa-hand-o-down"></i>&nbsp;&nbsp;设置</button>
                </div>
                <div style="margin-left: 10px;">
                    <button type="button" class="btn btn-danger" id="truncate"><i class="fa fa-trash"></i>&nbsp;&nbsp;清空</button>
                </div>
            </div>
            <div class="radio">
                <div class="checkbox">
                    {volist name="user_all" id="v"}
                    <label for="row[user][]-{$v.id|htmlentities}">
                        <input id="row[user][]-{$v.id|htmlentities}" name="row[user][]" type="checkbox" value="{$v.id|htmlentities}" {if condition="in_array($v.id,$users)"}checked{/if} /> {$v.nickname}
                    </label>
                    {/volist}
                </div>
            </div>
        </div>
        <div class="panel-footer">设置后用户个人中心会有提示</div>
    </div>
    <div class="panel panel-danger">
        <div class="panel-heading">必考人员考试状态列表</div>
        <div class="panel-body">
            <div id="toolbar" class="toolbar">
                <a href="javascript:;" class="btn btn-primary" title="{:__('Refresh')}" onclick="location.reload();"><i class="fa fa-refresh"></i> </a>
            </div>
            <table class="table table-striped table-bordered table-hover table-nowrap" id="user_table"></table>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>